/* 筛选按钮组样式模块 */

.filterGroup {
  display: flex;
  gap: 2px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.filterGroup:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filterBtn {
  position: relative;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

/* 按钮悬停效果 */
.filterBtn:hover:not(:disabled):not(.active) {
  color: #475569;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* 按钮点击效果 */
.filterBtn:active {
  transform: translateY(0);
}

/* 激活状态样式 */
.filterBtn.active {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  z-index: 2;
}

/* 激活状态的渐变背景效果 */
.filterBtn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  z-index: -1;
}

/* 特殊主题样式 - 蓝色主题 */
.filterGroup[data-active="current"] .filterBtn.active,
.filterGroup[data-active="historical"] .filterBtn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #2563eb;
}

.filterGroup[data-active="current"] .filterBtn.active:hover,
.filterGroup[data-active="historical"] .filterBtn.active:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* 特殊主题样式 - 粉色主题 */
.filterGroup[data-active="all"] .filterBtn.active,
.filterGroup[data-active="recommended"] .filterBtn.active,
.filterGroup[data-active="pending"] .filterBtn.active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  border: 1px solid #db2777;
}

.filterGroup[data-active="all"] .filterBtn.active:hover,
.filterGroup[data-active="recommended"] .filterBtn.active:hover,
.filterGroup[data-active="pending"] .filterBtn.active:hover {
  background: linear-gradient(135deg, #db2777 0%, #a21caf 100%);
}

/* 禁用状态 */
.filterBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.filterBtn:disabled:hover {
  background: transparent;
  color: #64748b;
}

/* 加载状态动画 */
.filterGroup[data-loading="true"] .filterBtn {
  pointer-events: none;
}

.filterGroup[data-loading="true"] .filterBtn:not(.active) {
  opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .filterGroup {
    gap: 1px;
    padding: 3px;
  }
  
  .filterBtn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .filterGroup {
    flex-direction: column;
    gap: 2px;
  }
  
  .filterBtn {
    width: 100%;
    min-width: auto;
  }
}

/* 动画效果 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filterGroup {
  animation: slideIn 0.3s ease-out;
}

/* 焦点样式 */
.filterBtn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.filterBtn:focus:not(.active) {
  background: rgba(255, 255, 255, 0.8);
}